package com.pactera.madp.cp.controller.oms.roomqc;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pactera.madp.common.core.util.R;
import com.pactera.madp.cp.service.RuleTouchService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@Api(tags = "质检规则触发情况")
@RequestMapping("/ruletouch")
public class RuleController {

    @Autowired
    private RuleTouchService ruleTouchService;

    @GetMapping("/query")
    @ApiOperation("/查询情况")
    public R queryByDto(Page page, Integer roomId, Integer type, Integer current, Integer size) {
        return R.ok(ruleTouchService.fQuery(page, roomId ,type, current, size));
    }

}
